package model

import "time"

type CheckNode struct {
	CheckNodeId int64 `gorm:"primaryKey"`
	CheckNodeName string
	NextCheckNodeId int64
	ThePreviousCheckNodeId int64
	RegionId int64
	RoleId int64
	UserList []*User `gorm:"-"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Region struct {
	RegionId int64 `gorm:"primaryKey"`
	RegionName string
	CheckNodeList []*CheckNode `gorm:"-"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type User struct {
	UserId int64 `gorm:"primaryKey"`
	UserName string
	RoleId int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type CheckNodeUser struct {
	CheckNodeUserId int64 `gorm:"primaryKey"`
	CheckNodeId int64
	UserId int64
	UserName string
	CreatedAt time.Time
	UpdatedAt time.Time
}
